package com.ccunix.hospital.admin.mapper;

import com.ccunix.hospital.admin.domain.News;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author 魏建波
 * Date:  2022/5/3
 * Time:  13:10
 * @description
 */
@Mapper
public interface NewsMapper {
    /**
     * 添加新闻
     * @param news
     * @return
     */
    Integer insert(News news);

    /**
     * 按照主键查询新闻信息
     * @param newId
     * @return
     */
    News selectNewsById(String newId);

    /**
     * 查询所有信息信息
     * @return
     */
    List<News> selectNewsList();

    Integer updateNewsById(News news);

    Integer deleteNewsByIds(String[] ids);
}